<?php /* Smarty version Smarty 3.1.4, created on 2011-12-05 16:41:40
         compiled from ".\templates\product\editproduct.tpl" */ ?>
<?php /*%%SmartyHeaderCode:224574eb1116e87aa05-22760556%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e4497b53371047f91181c2fc1f759368ccd8c9d6' => 
    array (
      0 => '.\\templates\\product\\editproduct.tpl',
      1 => 1323083490,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '224574eb1116e87aa05-22760556',
  'function' => 
  array (
  ),
  'version' => 'Smarty 3.1.4',
  'unifunc' => 'content_4eb1116eaa8c0',
  'variables' => 
  array (
    'title' => 0,
    'product_arr' => 0,
    'objeditorFCK' => 0,
    'cat_arr' => 0,
    'select' => 0,
    'itemcode' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4eb1116eaa8c0')) {function content_4eb1116eaa8c0($_smarty_tpl) {?><div id="page-heading">
	<h1><?php echo $_smarty_tpl->tpl_vars['title']->value;?>
</h1>	
</div>
<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['product_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']);
?>
<table border="0" width="80%" cellpadding="0" cellspacing="0" id="product-table">
	<tr>
		<th colspan="2" align="left" class="table-header-repeat line-left">&nbsp;</th>
	</tr>
	<tr>
		<td width="20%">Product Title</td>
		<td width="60%"><input type="text" name="product_title" id="product_title" value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_title'];?>
" class="inp-form" style="width: 500px;" /></td>
	</tr>
	<tr>
		<td>Product Description (English)</td>
		<td><?php echo $_smarty_tpl->tpl_vars['objeditorFCK']->value->editorfck("productdesc_en",($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_dsc_en']),"98%",200);?>
</td>
	</tr>
	<tr>
		<td>Product Description (à·ƒà·’à¶‚à·„à·…)</td>
		<td><?php echo $_smarty_tpl->tpl_vars['objeditorFCK']->value->editorfck("productdesc_sin",($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_dsc_sin']),"98%",200);?>
</td>
	</tr>
	<tr>
		<td>Product Description (à®¤à®®à®¿à®´ )</td>
		<td><?php echo $_smarty_tpl->tpl_vars['objeditorFCK']->value->editorfck("productdesc_tamil",($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_dsc_tamil']),"98%",200);?>
</td>
	</tr>
	<!--<tr>
		<td width="20%">Product Price</td>
		<td width="60%"><input type="text" name="product_price_lkr" id="product_price_lkr" value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_price_lkr'];?>
" class="inp-form" style="width: 100px;" /></td>
	</tr>
	<tr>
		<td width="20%">Product Quantity</td>
		<td width="60%"><input type="text" name="product_qty" id="product_qty" value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['quantity'];?>
" class="inp-form" style="width: 100px;" /></td>
	</tr>-->
	<tr>
		<td>Category</td>
		<td><select name="category" id="category" onchange="getSubCat(this.id)">
		<option value="">Select Category</option>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['name'] = 'sec2';
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['cat_arr']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec2']['total']);
?>
		<?php if ($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_cat_id']==$_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec2']['index']]['cat_id']){?>
		<?php $_smarty_tpl->tpl_vars['select'] = new Smarty_variable("selected='selected'", null, 0);?>
		<?php }else{ ?>
		<?php $_smarty_tpl->tpl_vars['select'] = new Smarty_variable('', null, 0);?>
		<?php }?>
		<option value="<?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec2']['index']]['cat_id'];?>
" <?php echo $_smarty_tpl->tpl_vars['select']->value;?>
><?php echo $_smarty_tpl->tpl_vars['cat_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec2']['index']]['cat_desc'];?>
</option>
		<?php endfor; endif; ?>
		</select>
		</td>
	</tr>
	<tr>
		<td>Sub Category</td>
		<td>
			<div id="subcat_loader">
				<select name="subcat" id="subcat">
				<option value="">Sub Category</option>	
				<?php if ($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_subcat_id']!=''){?>
					<option value="<?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['product_subcat_id'];?>
" selected="selected"><?php echo $_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['cat_desc'];?>
</option>
				<?php }?>				
				</select>
			</div></td>
	</tr>
	<tr>
		<td>New Arrival</td>
		<td>
			<input type="checkbox" name="newarrival" id="newarrival" value="1" />&nbsp;<span class="small_text2">(set this item as new arrival)</span>
		</td>
	</tr>		
	<tr>
		<td>Status</td>
		<td><select name="cmbStatus" id="cmbStatus">
		<option value="">Select Status</option>		
		<option value="1" <?php if ($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['status']==1){?> <?php echo "selected='selected'";?>
 <?php }?>>Show</option>
		<option value="0" <?php if ($_smarty_tpl->tpl_vars['product_arr']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['status']==0){?> <?php echo "selected='selected'";?>
 <?php }?>>Hide</option>		
		</select>
		</td>
	</tr>
	<tr>
	<td>&nbsp;</td>
	<td><div class="edit-icoset"><a href="javascript: void(0);" onclick="updateProduct();"><img src="images/icons/save-2.gif" />Update</a>
	<input type="hidden" name="itemcode" id="itemcode" value="<?php echo $_smarty_tpl->tpl_vars['itemcode']->value;?>
" /></td>
	</tr>
</table>
<?php endfor; endif; ?><?php }} ?>